package org.hxyjs.service;


import org.hxyjs.dto.DTO;
import org.hxyjs.entity.Subject;
import org.hxyjs.entity.Subject;
import org.hxyjs.page.PageInfo;

public interface SubjectService {
    /**
     * 查询全部题目
     * @return
     */
    public DTO<Subject> getAllSubjects() throws Exception;
    /**
     * 删除题目
     * @return
     */
    public DTO<Subject> deleteSubjectBySjno(String sjno) throws Exception;
    /**
     * 修改题目
     * @return
     */
    public DTO<Subject> updateSubjectBySjno(Subject subject) throws Exception;
    /**
     * 增加题目
     * @return
     */
    public DTO<Subject> addSubject(Subject subject) throws Exception;
    /**
     * 分页查询题目
     * @return
     */
    public DTO<Subject> getSubjectByPage(PageInfo pageInfo) throws Exception;
}
